
package com.dkt.api.web.dto;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import com.dkt.base.Regular;

public class ItemDto extends Dto {
	private static final long serialVersionUID = -7669131918952373315L;

	/** 商品名称 */
	private String name;
	
	/** 页码 */
	@NotEmpty(groups = Dto.Srch.class)
	@Pattern(regexp = Regular.REGEX_PINT10, groups = Dto.Srch.class)
	private String page = "1";
	
	/** 图片 */
	private String[] imgs;
	
	/** 简述 */
	@Size(max = 255)
	private String desc;
	
	/** 单价(分) */
	@Pattern(regexp = Regular.REGEX_PINT10, groups = {Dto.Add.class,Dto.Mdfy.class})
	private String price;
	
	/** 所属商铺ID */
	@NotEmpty(groups = Dto.Add.class)
	private String shopId;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public String[] getImgs() {
		return imgs;
	}

	public void setImgs(String[] imgs) {
		this.imgs = imgs;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}

}
